﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Reviewer.Business;
using Reviewer.Entities.Services;

public partial class Info_Unsubscribe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void uiBtnUnsubscribe_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            using (INewsletterService service = ServiceFactory.NewsletterService)
            {
                service.Unsubscribe(this.uiTbEmail.Text);
                uiPnlThankYou.Visible = true;
            }
        }
    }
}